from typing import List


class Solution:
    def setZeroes(self, matrix: List[List[int]]) -> None:
        """
        Do not return anything, modify matrix in-place instead.
        """
        m = len(matrix)
        if m ==0:
            return
        n = len(matrix[0])
        point = []
        for i in range(m):
            for j in range(n):
                if matrix[i][j] != 0:
                    continue
                point.append([i,j])
        
        for i, j in point:
            for row_index in range(m):
                matrix[row_index][j] = 0

            for col_index in range(n):
                matrix[i][col_index] = 0


if __name__ == "__main__":
    m = [[]]
    Solution().setZeroes(m)
    print(m)
